package Huawei;

import java.util.Scanner;

public class HJ106字符逆序 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        StringBuilder res = new StringBuilder(str);
        System.out.println(res.reverse().toString());
    }
}
